package pl.register.android.homework;

import pl.register.android.lesson.TagLesson;
import pl.register.android.util.time.DateUtil;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-14
 */
public class HomeworkTopic implements Serializable {

    private Long id;

    private String topic;

    private boolean isDone;

    public HomeworkTopic(Long id, String topic, boolean done) {
        this.id = id;
        this.topic = topic;
        isDone = done;
    }

    public HomeworkTopic(String topic, boolean done) {
        this.id = null;
        this.topic = topic;
        isDone = done;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public boolean isDone() {
        return isDone;
    }

    public void setDone(boolean done) {
        isDone = done;
    }

    @Override
    public String toString() {
        return "HomeworkTopic{" +
                "id=" + id +
                ", topic='" + topic + '\'' +
                ", isDone=" + isDone +
                '}';
    }
}